<script>
	export default {
		onLaunch: function() {
			if (wx.canIUse('getUpdateManager')) {
				const updateManager = wx.getUpdateManager()
				updateManager.onCheckForUpdate(function(res) {
					console.log(res)
					if (!res.hasUpdate) return;
					updateManager.onUpdateReady(function() {
						updateManager.applyUpdate()
					})
					updateManager.onUpdateFailed(function() {
						wx.showModal({
							title: 'update failed',
							content: 'please reopend agin'
						})
					})
				})
			} else {
				wx.showModal({
					title: 'warning',
					content: '当前微信版本过低，无法使用该功能，请升级到最新微信版本后重试。'
				})
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	.shenhezhuangtai_green {
		background: #005500;
		color: #005500;
	}

	.shenhezhuangtai_red {
		background: red;
		color: red;
	}

	.shenhezhuangtai_yellow {
		background: #ffaa00;
		color: #ffaa00;
	}

	.shenhezhuangtai_hui {
		background: #cccccc;
		color: #cccccc;
	}

	.pagebase {
		background-image: url(
);
		background-repeat: no-repeat;
		background-size: 100% 480rpx;
	}

	.hraderbgc {
		background-repeat: no-repeat;
		background-size: 100% 324rpx;
		background-image: url(
);
	}
</style>